package chain.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/30
 * @Modified By:
 */
public class Client {
    public static void main(String[] args) {
        Handler father = new FatherHandler();
        Handler husband = new HusbandHandler();
        Handler son = new SonHandler();
        father.setNextHandler(husband);
        husband.setNextHandler(son);
        father.handMessage(new Women(3, "我要回家"));
    }
}
